short tricks of Relation and function for KVS